package laf.learning;

public class StochasticApproximationGroundingRule implements GroundingRule {

	@Override
	public double increaseCorrelation(double correlation, long credibility) {
		correlation += (1.0 / (credibility + 1)) * (1.0 - correlation);
		return correlation;
	}

	@Override
	public double decreaseCorrelation(double correlation, long credibility) {
		correlation += (1.0 / (credibility + 1)) * (0.0 - correlation);
		return correlation;
	}
}
